package org.csu.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.catalina.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.csu.user.entity.dto.UserDTO;
import org.csu.user.entity.po.Users;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 
 * @since 2025-07-08
 */
@Mapper
public interface UsersMapper extends BaseMapper<Users> {

    @Select("select * from users where (account = #{username} or identity =#{username} " +
            "or email=#{username} or phone=#{username})")
    List<Users> login(UserDTO userDTO);
}
